package com.ebeitech.doorapp.util.compat;

import android.annotation.TargetApi;
import android.os.Build;
import android.support.v4.app.Fragment;

/**
 * Created by alice on 16/9/11.
 */
public class FragmentCompat23 {

	@TargetApi(Build.VERSION_CODES.M)
	public static void requestPermissions(Fragment fragment, String[] permissions,
										  int requestCode) {
		fragment.requestPermissions(permissions, requestCode);
	}

	@TargetApi(Build.VERSION_CODES.M)
	public static boolean shouldShowRequestPermissionRationale(Fragment fragment,
															   String permission) {
		return fragment.shouldShowRequestPermissionRationale(permission);
	}

}
